<template>
	<view class="container">
		<view>
			
		</view>
	</view>
</template>

<script>
	import {uniGetToken} from '@/utils/common.js'
	export default {
		data() {
			return {
			}
		},
		onLoad() {
			if(uniGetToken()){
				// 跳转至首页
				uni.switchTab({
					url:'/pages/index/index'
				})
			}else{
				// 登录页
				uni.reLaunch({
					url:'/pages/login/index'
				})
			}
		}
	}
</script>

<style scoped>
	page {
		width: 100%;
		height: 100vh;
		background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	}
</style>